home *** CD-ROM | disk | FTP | other *** search
- Path: news.iastate.edu!news
- From: raschmit@iastate.edu
- Newsgroups: comp.lang.c,comp.lang.c++
- Subject: Re: Please help: Borland C compiler on DOS memory allocation problem
- Date: 16 Apr 1996 15:46:18 GMT
- Organization: Iowa State University, Ames, Iowa
- Message-ID: <4l0fca$pnl@news.iastate.edu>
- References: <4kuhfh$k53@k9.San-Jose.ate.slb.com>
- NNTP-Posting-Host: schmitz.aecl.iastate.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
-
- I may have a memory problem that is very similar to the original post...
- how does one gain access to extended/expanded memory on a PC. I'm writing
- a 16-bit DOS program using the Borland C++ 4.0 compiler.
-
- I have been writing code that is able initialize arrays using heap memory
- as well as dynamically allocate memory from the heap using malloc(),
- farmalloc(), calloc(), new(), etc. for quite some time. From what I can
- tell, this is entirely allocated from the 640 Kbytes of conventional
- memory. However, I'd like to use an array (of structs) that far exceeds
- the capacity of conventional memory (1.2 meg approx.) and I just can't
- seem to figure out how to put it into either extended or expanded memory
- (I have 8 megs on my Pentium PC). I am compiling the program using the
- huge memory model....the program compiles and links properly but crashes
- when the amount of data exceeds the 640 Kbytes of conventional memory.
-
- Would anyone happen to know how I can resolve this problem?
-
- My questions are identical to the questions in the original post by
- afzal@San-Jose.ate.slb.com(Afzal Hossain):
-
- 1. Is the program (requiring 12 MB heap) feasible on a DOS based PC?
- 2. What are my choices -
-
-
-
-
-